//////////////////////////////////////////////////////////////////////////////////////////////
//	File			:	"EmitterManager.h"
//
//	Author			:	Mike Davis, Matt Stover, James Thornton, Keith Webster
//	
//	Project			:	TacWars
//
//	Last Modified	:	11/6/2013
//
//	Purpose			:	Stores and maintains all Particle Emitters
//
//////////////////////////////////////////////////////////////////////////////////////////////
#pragma once

#include "Emitter.h"


#include <vector>



using namespace std;

class Entity;

#define WIN32_LEAN_AND_MEAN
#include <Windows.h>

class EmitterManager
{
	vector<Emitter*>	allEmitters;
	vector<Emitter*>	liveEmitters;


	//////Singleton Setup/////////
	static EmitterManager* instance;

	EmitterManager();
	~EmitterManager();
	EmitterManager( const EmitterManager&);
	EmitterManager& operator=(const EmitterManager&);
	///////////////////////////
	

public:

	static	EmitterManager*	GetInstance();
	void	LoadEmitter(string name);
	void	UnloadEmitter(string name);
	void	PlayEmitter(POINT pos, Entity* object, string name);
	void	StopEmitter(string name);
	void	StopAll();

	void	UpdateAll(float dt);
	void	RenderAll();



	 


};